package com.jeecg.o2o.userAccess.entity;

import java.math.BigDecimal;
import java.util.Date;
import java.lang.String;
import java.io.UnsupportedEncodingException;
import java.lang.Double;
import java.lang.Integer;
import java.math.BigDecimal;
import javax.xml.soap.Text;
import java.sql.Blob;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;
import javax.persistence.SequenceGenerator;
import org.jeecgframework.poi.excel.annotation.Excel;

/**   
 * @Title: Entity
 * @Description: 平台使用用户
 * @author onlineGenerator
 * @date 2019-05-27 16:15:50
 * @version V1.0   
 *
 */
@Entity
@Table(name = "userAccess", schema = "")
@SuppressWarnings("serial")
public class UseraccessEntity implements java.io.Serializable {
	/**主键*/
	private java.lang.Integer id;
	/**昵称*/
	@Excel(name="昵称",width=15)
	private java.lang.String username;
	/**手机号*/
	@Excel(name="手机号",width=15)
	private java.lang.String telphone;
	/**创建日期*/
	@Excel(name="创建日期",width=15,format = "yyyy-MM-dd")
	private java.util.Date createdate;
	/**状态*/
	@Excel(name="状态",width=15,dicCode="bpm_status")
	private java.lang.String status;
	/**密码*/
	@Excel(name="密码",width=15)
	private java.lang.String password;
	/**用户真实姓名*/
	@Excel(name="用户真实姓名",width=15)
	private java.lang.String realname;
	/**身份证号*/
	@Excel(name="身份证号",width=15)
	private java.lang.String idcard;
	
	private String message;
	
	/**头像图片，关联头像数据库的id**/
	@Excel(name = "头像", width = 15)
	private Integer avatar;
	
	private byte[] avatarcode;
	
	@Excel(name = "余额", width = 15)
	private Double balance;
	
	@Excel(name = "我的优惠", width = 15)
	private Integer giftamount;
	
	@Excel(name = "我的积分", width = 15)
	private Integer point;
	
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  主键
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)

	@Column(name ="ID",nullable=false,length=20)
	public java.lang.Integer getId(){
		return this.id;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  主键
	 */
	public void setId(java.lang.Integer id){
		this.id = id;
	}
	
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  昵称
	 */

	@Column(name ="USERNAME",nullable=true,length=50)
	public java.lang.String getUsername(){
		return this.username;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  昵称
	 */
	public void setUsername(java.lang.String username){
		this.username = username;
	}
	
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  手机号
	 */

	@Column(name ="TELPHONE",nullable=true,length=50)
	public java.lang.String getTelphone(){
		return this.telphone;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  手机号
	 */
	public void setTelphone(java.lang.String telphone){
		this.telphone = telphone;
	}
	
	/**
	 *方法: 取得java.util.Date
	 *@return: java.util.Date  创建日期
	 */

	@Column(name ="CREATEDATE",nullable=true,length=20)
	public java.util.Date getCreatedate(){
		return this.createdate;
	}

	/**
	 *方法: 设置java.util.Date
	 *@param: java.util.Date  创建日期
	 */
	public void setCreatedate(java.util.Date createdate){
		this.createdate = createdate;
	}
	
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  状态
	 */

	@Column(name ="STATUS",nullable=true,length=2)
	public java.lang.String getStatus(){
		return this.status;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  状态
	 */
	public void setStatus(java.lang.String status){
		this.status = status;
	}
	
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  密码
	 */

	@Column(name ="PASSWORD",nullable=true,length=255)
	public java.lang.String getPassword(){
		return this.password;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  密码
	 */
	public void setPassword(java.lang.String password){
		this.password = password;
	}
	
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  用户真实姓名
	 */

	@Column(name ="REALNAME",nullable=true,length=32)
	public java.lang.String getRealname(){
		return this.realname;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  用户真实姓名
	 */
	public void setRealname(java.lang.String realname){
		this.realname = realname;
	}
	
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  身份证号
	 */

	@Column(name ="IDCARD",nullable=true,length=32)
	public java.lang.String getIdcard(){
		return this.idcard;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  身份证号
	 */
	public void setIdcard(java.lang.String idcard){
		this.idcard = idcard;
	}
	
	@Transient
	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	@Column(name ="AVATAR",nullable=true,length=32)
	public Integer getAvatar() {
		return this.avatar;
	}

	public void setAvatar(Integer avatar) {
		this.avatar = avatar;
	}

	@Transient
	public byte[] getAvatarcode() {
		return avatarcode;
	}

	public void setAvatarcode(byte[] avatarcode) {
		this.avatarcode = avatarcode;
	}

	@Column(name ="balance",nullable=true,length=32)
	public Double getBalance() {
		return balance;
	}

	public void setBalance(Double balance) {
		this.balance = balance;
	}

	@Column(name ="giftamount",nullable=true,length=32)
	public Integer getGiftamount() {
		return giftamount;
	}

	public void setGiftamount(Integer giftamount) {
		this.giftamount = giftamount;
	}

	@Column(name ="point",nullable=true,length=32)
	public Integer getPoint() {
		return point;
	}

	public void setPoint(Integer point) {
		this.point = point;
	}
	
	
	
}
